package com.dai.spec.gxk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dai.spec.gxk.domain.StudentCourse;
import com.dai.spec.gxk.request.PageRequest;
import com.dai.spec.gxk.vo.SelectedCourseVO;

import java.util.List;

/**
 * 选课信息管理Service接口
 *
 * @author daikl
 * @date 2024-03-01
 */
public interface SelectedCourseService extends IService<StudentCourse> {
    /**
     * 学生选课
     * @param courseId
     * @return
     */
    public int saveSelectedCourse(Long courseId);


    /**
     * 学生退课
     * @param courseId
     * @return
     */
    public int dropSelectedCourse(Long courseId);
    /**
     * 查询已选课程列表
     * @param
     * @return
     */
    List<SelectedCourseVO> querySelectedCourseList(PageRequest pageRequest);
}
